﻿<Window x:Class="PowerSong.UserInterface.EditLicensesWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Configure Licenses" Height="318" Width="475" Icon="/PowerSong;component/Icons/BlackIcon.ico"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <Button Content="_Close" Height="23" HorizontalAlignment="Right" Margin="0,0,12,12" Name="OKButton" VerticalAlignment="Bottom" Width="95" Click="OKButton_Click" IsDefault="True" IsCancel="True" />
        <ListView Margin="10,32,113,63" Name="LicensesListView" SelectionMode="Extended" SelectionChanged="LicensesListView_SelectionChanged">
            <ListView.View>
                <GridView>
                    <GridViewColumn DisplayMemberBinding="{Binding Path=Name}" Header="License Name" />
                    <GridViewColumn DisplayMemberBinding="{Binding Path=Number}" Header="Number" />
                </GridView>
            </ListView.View>
        </ListView>
        <TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" Text="The following set of licenses are currently defined:" VerticalAlignment="Top" />
        <Button Content="_Create License..." HorizontalAlignment="Right" Margin="0,32,12,0" Name="AddLicenseButton" Width="95" Height="23" VerticalAlignment="Top" Click="AddLicenseButton_Click" />
        <Button IsEnabled="False" Content="_Edit License..." Height="23" HorizontalAlignment="Right" Margin="0,61,12,0" Name="EditLicenseButton" VerticalAlignment="Top" Width="95" Click="EditLicenseButton_Click" />
        <Button IsEnabled="False" Content="_Delete License" Height="23" HorizontalAlignment="Right" Margin="0,90,12,0" Name="DeleteLicenseButton" VerticalAlignment="Top" Width="95" Click="DeleteLicenseButton_Click" />
        
        <CheckBox Content="Use one of the licenses as the default license for new songs:" Height="16" HorizontalAlignment="Left" Margin="12,0,0,41" Name="DefaultCheckBox" VerticalAlignment="Bottom" Checked="CheckBoxChanged" Unchecked="CheckBoxChanged" />
        <ComboBox IsEnabled="False" Height="23" HorizontalAlignment="Left" Margin="31,0,0,12" Name="DefaultLicenseComboBox" VerticalAlignment="Bottom" Width="259" />
        
    </Grid>
</Window>
